<?php

class SJB_Admin_Miscellaneous_UploadedFile extends SJB_Function
{
	public function execute()
	{
		$picture_id = SJB_Request::getVar('file_id', null);
		$picture_info = SJB_UploadPictureManager::getUploadedPictureInfo($picture_id);
		if (!is_null($picture_id) && (!is_null($picture_info))) {
			if (!empty($picture_info['file_content'])) {
				header("Content-Type: image/jpeg");
				echo $picture_info['file_content'];
			}
		}
	}
}
